<!--#include file="CheckSession.asp"-->
<!--#include file="../inc/PublicFun.Asp"-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
    <title>�ޱ����ĵ�</title>
    <link href="css/style.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" charset="utf-8" src="../webedit/kindeditor.js"></script>
    <script type="text/javascript">
        KE.show({
            id: 'TxtMemberContent',
            imageUploadJson: '../../upload_json.asp',
            fileManagerJson: '../../file_manager_json.asp',
            allowFileManager: true,
            afterCreate: function (id) {
                KE.event.ctrl(document, 13, function () {
                    KE.util.setData(id);
                    document.forms['form1'].submit();
                });
                KE.event.ctrl(KE.g[id].iframeDoc, 13, function () {
                    KE.util.setData(id);
                    document.forms['form1'].submit();
                });
            }
        });
    </script>


</head>

<body>
<%
strAction = trim(request("Action"))
	strMemberId = trim(request("MemberId"))
	
	IF Request("Action") = "s" Then
	'�޸�
		Set Rs=Server.CreateObject("Adodb.RecordSet")
			sql="select * from Member where MemberId="&strMemberId&""
			rs.open sql,conn,1,3
			Rs("MemberName")=Trim(Request("TxtMemberName"))
			Rs("MemberPwd")=Trim(Request("TxtMemberPwd"))	
			Rs("MemberIp")=Trim(Request("TxtMemberIp"))
			rs("MemberLastIp")=trim(request("TxtMemberLastIp"))
			Rs("MemberLoginNum")=Trim(Request("TxtMemberLoginNum"))
			Rs("MemberTel")=Trim(Request("TxtMemberTel"))
			If Trim(Request("TxtMemberIsCheck"))="" Then
				Rs("MemberIsCheck")=0
			Else
				Rs("MemberIsCheck")=1
			End IF	
			Rs("MemberTypeId")=Trim(Request("TxtMemberTypeId"))
			Rs("MemberContent")=Trim(Request("TxtMemberContent"))
			Rs("MemberContent1")=Trim(Request("TxtMemberContent1"))		
			Rs("Times")= Trim(Request("TxtMemberTimes"))
			
			Rs("question")=Trim(Request("question"))
			Rs("answer")=Trim(Request("answer"))	
			Rs("realname")=Trim(Request("realname"))
			Rs("usex")=Trim(Request("usex"))	
			
			Rs("upost")=Trim(Request("upost"))
			Rs("umail")=Trim(Request("umail"))	
			Rs("ucity")=Trim(Request("ucity"))
			Rs("uaddress")=Trim(Request("uaddress"))
			
			Rs("bank")=Trim(Request("bank"))
			Rs("cardid")=Trim(Request("cardid"))
			Rs("licai")=Trim(Request("licai"))
						
			Rs.Update	
		Rs.Close()
		Set Rs=Nothing
		response.Write("<script language='javascript'>alert('�޸ĳɹ�������');window.location.href='Admin_Memberinfor . asp ? Action = e & MemberId = "&strMemberId&"'</script>")
	End IF
	
	IF Request("Action")="e" Then
	'�޸�
		Set Rs = Server . CreateObject("Adodb.RecordSet")
			sql = "select * from Member where MemberId=" & strMemberId & ""
			Rs . open sql,Conn,1,3
			IF Not(Rs . Eof and Rs . Bof) Then
				strMemberName = Rs("MemberName")
				strMemberPwd = Rs("MemberPwd")
				strMemberIp = Rs("MemberIp")
				strMemberLoginNum = Rs("MemberLoginNum")
				strMemberTel = Rs("MemberTel")
				strMemberIsCheck = Rs("MemberIsCheck")
				strMemberTypeId = Rs("MemberTypeId")
				strTimes = Rs("Times")
				strGetTimes = Rs("GetTimes")
				strMemberContent = Rs("MemberContent")
				strMemberContent1 = Rs("MemberContent1")
				strMemberLastIp = rs("MemberLastIp")
				
				
				question = Rs("question")
				answer = Rs("answer")
				realname = Rs("realname")
				usex = rs("usex")
				
				upost = Rs("upost")
				umail = Rs("umail")
				ucity = Rs("ucity")
				uaddress = rs("uaddress")

				bank = Rs("bank")
				cardid = Rs("cardid")
				licai = Rs("licai")
			End If
	End If			
	
%>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td height="50" align="center" class="title">��Ա��Ϣ</td>
    </tr>
</table>
<div>&nbsp;</div>
<table width="100%" border="1" align="center" cellpadding="5" cellspacing="0" style="border-collapse:collapse">
    <form action="?action=s&MemberId=<%= strMemberId %>" method="post" name="form1">
        <tr>
            <td width="150" align="right" nowrap>�û���</td>
            <td nowrap><input name="TxtMemberName" type="text" class="inputtext" id="TxtMemberName" readonly
                              style="width:300px" value="<%= strMemberName %>" maxlength="50"></td>
        </tr>
        <tr>
            <td align="right" nowrap>���룺</td>
            <td valign="top" nowrap><input name="TxtMemberPwd" type="text" class="inputtext" id="TxtMemberPwd"
                                           style="width:300px" value="<%= strMemberPwd %>" maxlength="50"></td>
        </tr>
        <tr>
            <td align="right" nowrap>�绰��</td>
            <td valign="top" nowrap><input name="TxtMemberTel" type="text" class="inputtext" id="TxtMemberTel"
                                           style="width:300px" value="<%= strMemberTel %>" maxlength="50"></td>
        </tr>
        <tr>
            <td align="right" nowrap>���ͣ�</td>
            <td valign="top" nowrap>
                <select name="TxtMemberTypeId" id="TxtMemberTypeId" style="HEIGHT=20;WIDTH=200px">
                    <%
                    Set Rs = Server . CreateObject("Adodb.RecordSet")
			Sql = "Select * from mtype "
			Rs . open Sql,Conn,1,3
			If not(Rs . Eof and Rs . Bof) then
				do while not Rs . Eof
		%>
                    <option
                        value="<%= rs("id") %>" <% If strMemberTypeId = rs("id") Then Response . Write("Selected") End If%>><%= rs("classname") %></option>
                    <%
                    Rs . MoveNext
				Loop
			End IF
                        Rs . Close()
                    Set Rs = Nothing
		%>
                </select></td>
        </tr>


        <tr>
            <td align="right" nowrap>�������⣺</td>
            <td valign="top" nowrap><input name="question" type="text" class="inputtext" id="question"
                                           style="width:300px" value="<%= question %>" maxlength="50"></td>
        </tr>

        <tr>
            <td align="right" nowrap>����𰸣�</td>
            <td valign="top" nowrap><input name="answer" type="text" class="inputtext" id="answer" style="width:300px"
                                           value="<%= answer %>" maxlength="50"></td>
        </tr>

        <tr>
            <td align="right" nowrap>��ʵ����</td>
            <td valign="top" nowrap><input name="realname" type="text" class="inputtext" id="realname"
                                           style="width:300px" value="<%= realname %>" maxlength="50"></td>
        </tr>

        <tr>
            <td align="right" nowrap>��&nbsp;&nbsp;��</td>
            <td valign="top" nowrap><input name="usex" type="text" class="inputtext" id="usex" style="width:300px"
                                           value="<%= usex %>" maxlength="50"></td>
        </tr>

        <tr>
            <td align="right" nowrap>�������룺</td>
            <td valign="top" nowrap><input name="upost" type="text" class="inputtext" id="upost" style="width:300px"
                                           value="<%= upost %>" maxlength="50"></td>
        </tr>

        <tr>
            <td align="right" nowrap>�������䣺</td>
            <td valign="top" nowrap><input name="umail" type="text" class="inputtext" id="umail" style="width:300px"
                                           value="<%= umail %>" maxlength="50"></td>
        </tr>

        <tr>
            <td align="right" nowrap>����ʡ�У�</td>
            <td valign="top" nowrap><input name="ucity" type="text" class="inputtext" id="ucity" style="width:300px"
                                           value="<%= ucity %>" maxlength="50"></td>
        </tr>

        <tr>
            <td align="right" nowrap>��ϵ��ַ��</td>
            <td valign="top" nowrap><input name="uaddress" type="text" class="inputtext" id="uaddress"
                                           style="width:300px" value="<%= uaddress %>" maxlength="50"></td>
        </tr>

        <!--  <tr>
    <td align="right" nowrap>�����˻���</td>
    <td valign="top" nowrap><input name="bank" type="text" class="inputtext" id="bank" style="width:300px" value="<%= bank %>" maxlength="50"></td>
  </tr>
  
  <tr>
    <td align="right" nowrap>�����˻���</td>
    <td valign="top" nowrap><input name="cardid" type="text" class="inputtext" id="cardid" style="width:300px" value="<%= cardid %>" maxlength="50"></td>
  </tr>                 
  <tr>
    <td align="right" nowrap>����ʽ�</td>
    <td valign="top" nowrap><input name="licai" type="text" class="inputtext" id="licai" style="width:300px" value="<%= licai %>" maxlength="50"></td>
  </tr> -->

        <tr>
            <td align="right" nowrap>ע��IP��</td>
            <td valign="top" nowrap><input name="TxtMemberIp" type="text" class="inputtext" id="TxtMemberIp"
                                           style="width:300px" value="<%= strMemberIp %>" maxlength="50"></td>
        </tr>
        <tr>
            <td align="right" nowrap>����¼IP��</td>
            <td valign="top" nowrap><input name="TxtMemberLastIp" type="text" class="inputtext" id="TxtMemberLastIp"
                                           style="width:300px" value="<%= strMemberLastIp %>" maxlength="50"></td>
        </tr>
        <tr>
            <td align="right" nowrap>��¼����</td>
            <td valign="top" nowrap><input name="TxtMemberLoginNum" type="text" class="inputtext" id="TxtMemberLoginNum"
                                           style="width:300px" value="<%= strMemberLoginNum %>" maxlength="50"></td>
        </tr>
        <tr>
            <td align="right" nowrap>�Ƿ���ˣ�</td>
            <td valign="top" nowrap><input name="TxtMemberIsCheck"
                                           type="checkbox" <% If strMemberIsCheck = 1 Then Response . Write("Checked") End If%>
                                           value="<%= strMemberIsCheck %>">&nbsp;ѡ�������
            </td>
        </tr>
        <tr>
            <td align="right" nowrap>ע��ʱ�䣺</td>
            <td valign="top" nowrap><input name="TxtMemberTimes" type="text" class="inputtext" id="TxtMemberTimes"
                                           style="width:300px" value="<%= strTimes %>" maxlength="50" readonly></td>
        </tr>
        <tr style="display:none">
            <td align="right" nowrap>��ѯ��Ϣ��</td>
            <td valign="top" nowrap>
                <textarea id="TxtMemberContent1" name="TxtMemberContent1"
                          style="height:200px; width:99%"><%= strMemberContent1 %></textarea>
            </td>
        </tr>
        <tr>
            <td align="right" nowrap>������Ϣ��</td>
            <td valign="top" nowrap>
                <textarea id="TxtMemberContent" name="TxtMemberContent"
                          style="height:200px; width:99%"><%= strMemberContent %></textarea>
            </td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td><input name="submit1" type="submit" class="button"
                       value="ȷ���ύ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="reset" type="reset" class="button"
                                                                                value="ȡ����д"></td>
        </tr>
    </form>
</table>
</body>
</html>
